export // 表格配置
const tablePageConfig = {
  // buttonList: [
  //   {
  //     prop: 'new',
  //     label: 'New',
  //     type: 'primary',
  //   },
  // ],
  title: 'Material List',
  requestApi: '/leaveRule/getLeaveRuleList',
  exportConfig: {
    api: '/leaveRule/downloadLeaveRuleList',
    fileName: 'Leave Rules',
  },
};

export // 表格列配置
const tableConfig = {
  tableList: [
    { type: 'selection' },
    {
      label: 'S/N',
      type: 'index',
    },
    {
      prop: 'materialName',
      label: 'Material Name',
      itemConfig: {
        sortable: true,
        headerAlign: 'center',
        align: 'left',
        minWidth: 140,
      },
    },
    {
      prop: 'Material Code',
      label: 'Material Code',
      itemConfig: {
        sortable: true,
        headerAlign: 'center',
        align: 'left',
        minWidth: 140,
      },
    },
    {
      prop: 'Specs',
      label: 'Specs',
      itemConfig: {
        sortable: true,
        headerAlign: 'center',
        align: 'left',
        minWidth: 100,
      },
    },
    {
      prop: 'Model',
      label: 'Model',
      itemConfig: {
        sortable: true,
        headerAlign: 'center',
        align: 'left',
        minWidth: 100,
      },
    },
    {
      prop: 'Brand',
      label: 'Brand',
      itemConfig: {
        sortable: true,
        headerAlign: 'center',
        align: 'left',
        minWidth: 100,
      },
    },
    {
      prop: 'Unit',
      label: 'Unit',
      itemConfig: {
        sortable: true,
        headerAlign: 'center',
        align: 'left',
        minWidth: 100,
      },
    },
  ],
  tableBind: {},
};
